package cn.stylefeng.guns.modular.tool.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 云仓库存表
 * </p>
 * @author zhucx
 * @since 2023-04-01
 */
@TableName("tool_storage_stock")
@Data
public class ToolStorageStock implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标记
     */
    @TableField("mark")
    private String mark;

    /**
     * 库存状态
     */
    @TableField("stockstate")
    private String stockstate;

    /**
     * 分公司id
     */
    @TableField("operate_id")
    private Long operateId;

    /**
     * 分公司名称
     */
    @TableField("operate_name")
    private String operateName;

    /**
     * 客户id
     */
    @TableField("customer_id")
    private Long customerId;

    /**
     * 客户名称
     */
    @TableField("customer_name")
    private String customerName;

    /**
     * 仓库id
     */
    @TableField("warehouse_id")
    private Long warehouseId;

    /**
     * 仓库名称
     */
    @TableField("warehouse_name")
    private String warehouseName;

    /**
     * 库区id
     */
    @TableField("area_id")
    private Long areaId;

    /**
     * 库区编号
     */
    @TableField("area_number")
    private String areaNumber;

    /**
     * 库位id
     */
    @TableField("position_id")
    private Long positionId;

    /**
     * 库位编号
     */
    @TableField("position_number")
    private String positionNumber;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品编号
     */
    @TableField("goods_number")
    private String goodsNumber;

    /**
     * 数量
     */
    @TableField("num")
    private String num;

    /**
     * 库存重量
     */
    @TableField("stock_weight")
    private String stockWeight;

    /**
     * 库存体积
     */
    @TableField("stock_volume")
    private String stockVolume;

    /**
     * 单价
     */
    @TableField("unitprice")
    private String unitprice;

    /**
     * 库存金额
     */
    @TableField("stock_money")
    private String stockMoney;

    /**
     * 批次
     */
    @TableField("goodsbatchs")
    private String goodsbatchs;

    /**
     * 生产日期
     */
    @TableField("producetime")
    private String producetime;

    /**
     * 入库日期
     */
    @TableField("put_time")
    private String putTime;

    /**
     * 交付id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 单位
     */
    @TableField("goods_unit")
    private String goodsUnit;

    /**
     * 规格
     */
    @TableField("goods_specs")
    private String goodsSpecs;

    @Override
    public String toString() {
        return "ToolStorageStock{" +
        "id=" + id +
        ", mark=" + mark +
        ", stockstate=" + stockstate +
        ", operateId=" + operateId +
        ", operateName=" + operateName +
        ", customerId=" + customerId +
        ", customerName=" + customerName +
        ", warehouseId=" + warehouseId +
        ", warehouseName=" + warehouseName +
        ", areaId=" + areaId +
        ", areaNumber=" + areaNumber +
        ", positionId=" + positionId +
        ", positionNumber=" + positionNumber +
        ", goodsId=" + goodsId +
        ", goodsName=" + goodsName +
        ", goodsNumber=" + goodsNumber +
        ", num=" + num +
        ", stockWeight=" + stockWeight +
        ", stockVolume=" + stockVolume +
        ", unitprice=" + unitprice +
        ", stockMoney=" + stockMoney +
        ", goodsbatchs=" + goodsbatchs +
        ", producetime=" + producetime +
        ", putTime=" + putTime +
        ", deliverId=" + deliverId +
        ", deptId=" + deptId +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", goodsUnit=" + goodsUnit +
        ", goodsSpecs=" + goodsSpecs +
        "}";
    }
}
